package com.nsu.cl.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 选课表
 * @TableName coures_selection
 */
@TableName(value ="coures_selection")
@Data
public class CouresSelection implements Serializable {
    /**
     * 选课ID
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 学生ID
     */
    private Integer studentId;

    /**
     * 课程ID
     */
    private Integer subjectId;

    /**
     * 老师ID
     */
    private Integer teacherId;

    /**
     * 学生姓名
     */
    private String studentName;

    /**
     * 学生信息
     */
    @TableField(exist = false)
    private Student student;

    /**
     * 科目信息
     */
    @TableField(exist = false)
    private Subject subject;

    /**
     * 老师信息
     */
    @TableField(exist = false)
    private Teacher teacher;

    /**
     * 年级信息
     */
    @TableField(exist = false)
    private Grade grade;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}